//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#define PKT_ACCT_CREATE_ERR_NAME_TAKEN		1 // login name allready taken
#define PKT_ACCT_CREATE_ERR_NAME_TOO_SHORT	2 // login name not long enough
#define PKT_ACCT_CREATE_ERR_NAME_PC			3 // politically incorrect text in login name
#define PKT_ACCT_CREATE_ERR_NAME_INVALID	4 // invalid chars in login name text
#define PKT_ACCT_CREATE_ERR_PERMISSION		5 // insuffecient permission to create acct
#define PKT_ACCT_CREATE_ERR_BAN_IP_PERM		6 // ip address is banned permenently
#define PKT_ACCT_CREATE_ERR_BAN_IP_TEMP		7 // ip address is banned temporary

class PktAcctCreateReply : public VxPktHdr
{
public:
	PktAcctCreateReply()
	{
		m_u16PktLen = sizeof( PktAcctCreateReply );
		m_u16PktType = PKT_TYPE_ACCT_CREATE_REPLY;
		u16Error = 0;
		u32TmpBanExpireTime = 0;
		u32Res = 0;
	}
	U16	u16Error;					// error code if any
	U32	u32TmpBanExpireTime;		// if temporary banned then when ban expires
	U32	u32Res;						// reserved
};

